﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             x:Name="userControl"
             mc:Ignorable="d"
             x:Class="Rio.Framework.Pages.SplashScreen"
             d:DesignWidth="640"
             d:DesignHeight="480"
             Width="Auto"
             Height="Auto">

    <Grid x:Name="LayoutRoot">
        
        <Rectangle HorizontalAlignment="Stretch"
                    VerticalAlignment="Stretch"
                    Fill="#FF8A8A8A"
                    Opacity="0.8"
                    Margin="0"
                    Name="SplashRect">
            <Rectangle.Effect>
                <BlurEffect Radius="50" />
            </Rectangle.Effect>
        </Rectangle>
        
        <Border BorderThickness="2"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                BorderBrush="White"
                CornerRadius="10"
                Background="#FF546276"
                Width="500"
                Height="300"
                Margin="0">

               <Grid Width="Auto"
                     Margin="3,3,3,3"
                     Background="#FF546276"
                     Opacity="0.7">
                    <StackPanel Orientation="Vertical"
                            VerticalAlignment="Center">
                        <TextBlock x:Name="TextBlockMsg"
                               TextWrapping="Wrap"
                               HorizontalAlignment="Center"
                               Margin="10,0,10,0"
                               Foreground="White"
                               FontSize="18"
                               Text="{Binding Message, ElementName=userControl, Mode=OneWay}"
                               VerticalAlignment="Center" />
                        <ProgressBar x:Name="ProgressBarProcess"
                                 Foreground="#FF001966"
                                 Margin="30,5"
                                 Height="20"
                                 Minimum="0"
                                 Maximum="100"
                                 Value="0"
                                 Visibility="Collapsed"/>
                        <TextBlock x:Name="TextBlockMsgDetail"
                               TextWrapping="Wrap"
                               HorizontalAlignment="Center"
                               Margin="10,0,10,0"
                               Foreground="White"
                               FontSize="18"
                               Text="{Binding MessageDetail, ElementName=userControl, Mode=OneWay}"
                               VerticalAlignment="Center" />
                    </StackPanel>
                    <Button x:Name="CancelBtn"
                        Height="30"
                        MinWidth="150"
                        HorizontalAlignment="Right"
                        Margin="0,10,5,5"
                        Content="Cancel"
                        Visibility="Collapsed"
                        Click="CancelBtn_Click" />
            </Grid>
         </Border>
    </Grid>
</UserControl>